<?php
if ( !defined( 'APP_NAME' ) ) {
	exit( 'Access Denied' ) ;
}
abstract class User {

	# 用户uid;
	public $u_id = 0 ;

	# 用户名;
	public $u_name = '' ;
	
	# 用户真名;
	public $u_realname = '' ;

	# 用户mobile
	public $u_mobile = '' ;

	# 用户email地址
	public $u_email = '' ;

	# 用户地址;
	public $u_address = '' ;

	# 用户ip;
	public $u_ip = '' ;

	# 
	public $u_liantong = 0 ;
	
	/**
	 * @param ARRAY	$userinfo	用户的基本信息;
	 */
	public function __construct( $userinfo = null ) {
		if ( is_array( $userinfo ) ) {
			foreach ( get_object_vars( $this ) as $key => $value ) {
				$this->$key = isset( $userinfo[$key] ) ? $userinfo[$key] : $this->$key ;
			}
		}
	}
	
	
	
	

}